package com.almond.mq.receiver;

import com.alibaba.fastjson.JSON;
import com.almond.mq.model.OrderNotifyMQ;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrderNotifyReceiver implements OrderNotifyMQ.IMQReceiver{
    @Override
    public void receive(OrderNotifyMQ.MsgPayload payload) {
        log.info("orderNotify{}", JSON.toJSONString(payload));
    }
}
